
-- for CCLuaEngine
function __G__TRACKBACK__(errorMessage)
    CCLuaLog("----------------------------------------")
    CCLuaLog("LUA ERROR: "..tostring(errorMessage).."\n")
    CCLuaLog(debug.traceback("", 2))
    CCLuaLog("----------------------------------------")
end

CCLuaLoadChunksFromZip("res/framework_precompiled.zip")

xpcall(function()
    require("game")
end, __G__TRACKBACK__)


local function getBack(data)
 
end

local function callback(data)
    require("sdk/taobao_sdk") 
    taobaoSdk=taobao.new(data);
    taobaoSdk:query("taobao.itemcats.authorize.get",getBack,"brand.vid")
    game.startup()
end



local args = {
    callBack =callback, 
}

local ok, ret = luaoc.callStaticMethod("RootViewController", "registerCallBack", args)
if not ok then
    print("call ini error")
end
 
